<html>
<head>
<meta http-equiv=Content-Type content=text/html;charset=utf-8>
<#include "/xadmin/inc/common.html">
<script language="JavaScript">
	function doSave(){
		var url = '<#if id??>deptmanage-updatedept.do?id=${id}<#else>deptmanage-adddept.do</#if>';
		$('form').form('submit',{  
		    url:url,
		    onSubmit:function(){
				return $(this).form('validate')
		    },  
		    success:function(data){		    	
		    	top.gridObj.treegrid('reload');
		    	top.closemodalwindow(false, data);
		    }  
		});
	}
	//
	$(function(){
		$('#fid').combobox('setValue','${obj.fid!}');
	})
</script>

</head>
<body>
<form method="post" name="flmxForm" id="flmxForm">
	<table align=center border="0" width="90%" cellspacing="0" cellpadding="0" class="table_all">
      <tr>
        <td width="30%" height="35" class="td_table_1" valign="middle"><div align="center"><span class="smallFont">部门名称：<font color=red>*</font></span></div></td>
        <td width="70%" height="35" class="td_table_2"><div align="left">&nbsp;
        <input class="easyui-validatebox" type="text" required="true" id="name" name="name" maxlength="30" style="width:200px;" value="${obj.name!}">
          </div></td>
      </tr>
      <tr>
        <td height="35" class="td_table_1"><div align="center">上级部门：</div></td>
        <td height="35" class="td_table_2">&nbsp;
        	<input id="fid" class="easyui-combobox" name="fid" style="width:200px;" data-options="valueField:'id',textField:'name',url:'${request.contextPath}/xadmin/system/deptmanage-listdept.do'" panelHeight="90" />
         </td>
      </tr>
    <tr>
      <td width="30%" height="35" class="td_table_1"><div align="center">排序：<font color=red>*</font></div></td>
      <td width="70%" height="35" class="td_table_2">&nbsp;
      <input class="easyui-validatebox" type="text" required="true" id="px" name="px" maxlength="50" style="width:100px;" value="${obj.px!}">
      </td>
    </tr>    
    <tr>
      <td width="30%" height="35" class="td_table_1"><div align="center">状态：<font color=red>*</font></div></td>
      <td width="70%" height="35" class="td_table_2">&nbsp;
      <input class="easyui-validatebox" type="text" required="true" id="zt" name="zt" maxlength="50" style="width:100px;" value="${obj.zt!}">
      </td>
    </tr>    
  </table>
</form>
</body>
</html>